package java12;

public class code001 {

	public static void main(String[] args) {
		for(int i=1;i<=9;i++){
			for(int j=1;j<=17;j++){
				if(i==1){
					if(j<=9){
					System.out.print("*");
					}else if(j>9&&j<17){
					System.out.print(" ");
					}else if(j==17){
						System.out.print("*");
					}
				}else if(i>=2&&i<=4&&(j==9||j==17)){
					System.out.print("*");
				}else if(i>=2&&i<=4&&(j>9||j<9)){
					System.out.print(" ");
				}else if(i==5){
					System.out.print("#");
				}else if(i>=6&&i<=8&&(j==1||j==9)){
					System.out.print("*");
				}else if(i>=6&&i<=8&&j>=2&&j<=17){
					System.out.print(" ");
				}else if(i==9){
					if(j==1){
						System.out.print("*");
					}
					else if(j>=9){
						System.out.print("*");
					}else{
						System.out.print(" ");
					}
				}else{
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
}
